package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.Modelable;
import java.util.Date;

public class SupplierEntity extends BaseEntity implements Modelable {
    private static final long serialVersionUID = 1L;
    private Integer enterpriseId;
    private Integer supplierId;
    private String supplierCode;
    private String supplierName;
    private String telephone;
    private String address;
    private String contactPerson;
    private Long supplierTypeId;
    private String editUserCode;
    private String editUserName;
    private Date editTime;
    private String createUserCode;
    private String createUserName;

    public String getModelStringValue() {
        return this.getSupplierName();
    }

    public SupplierEntity() {
    }

    public Integer getEnterpriseId() {
        return this.enterpriseId;
    }

    public Integer getSupplierId() {
        return this.supplierId;
    }

    public String getSupplierCode() {
        return this.supplierCode;
    }

    public String getSupplierName() {
        return this.supplierName;
    }

    public String getTelephone() {
        return this.telephone;
    }

    public String getAddress() {
        return this.address;
    }

    public String getContactPerson() {
        return this.contactPerson;
    }

    public Long getSupplierTypeId() {
        return this.supplierTypeId;
    }

    public String getEditUserCode() {
        return this.editUserCode;
    }

    public String getEditUserName() {
        return this.editUserName;
    }

    public Date getEditTime() {
        return this.editTime;
    }

    public String getCreateUserCode() {
        return this.createUserCode;
    }

    public String getCreateUserName() {
        return this.createUserName;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public void setSupplierTypeId(Long supplierTypeId) {
        this.supplierTypeId = supplierTypeId;
    }

    public void setEditUserCode(String editUserCode) {
        this.editUserCode = editUserCode;
    }

    public void setEditUserName(String editUserName) {
        this.editUserName = editUserName;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public void setCreateUserCode(String createUserCode) {
        this.createUserCode = createUserCode;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SupplierEntity)) {
            return false;
        } else {
            SupplierEntity other = (SupplierEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label167: {
                    Object this$enterpriseId = this.getEnterpriseId();
                    Object other$enterpriseId = other.getEnterpriseId();
                    if (this$enterpriseId == null) {
                        if (other$enterpriseId == null) {
                            break label167;
                        }
                    } else if (this$enterpriseId.equals(other$enterpriseId)) {
                        break label167;
                    }

                    return false;
                }

                Object this$supplierId = this.getSupplierId();
                Object other$supplierId = other.getSupplierId();
                if (this$supplierId == null) {
                    if (other$supplierId != null) {
                        return false;
                    }
                } else if (!this$supplierId.equals(other$supplierId)) {
                    return false;
                }

                label153: {
                    Object this$supplierTypeId = this.getSupplierTypeId();
                    Object other$supplierTypeId = other.getSupplierTypeId();
                    if (this$supplierTypeId == null) {
                        if (other$supplierTypeId == null) {
                            break label153;
                        }
                    } else if (this$supplierTypeId.equals(other$supplierTypeId)) {
                        break label153;
                    }

                    return false;
                }

                Object this$supplierCode = this.getSupplierCode();
                Object other$supplierCode = other.getSupplierCode();
                if (this$supplierCode == null) {
                    if (other$supplierCode != null) {
                        return false;
                    }
                } else if (!this$supplierCode.equals(other$supplierCode)) {
                    return false;
                }

                label139: {
                    Object this$supplierName = this.getSupplierName();
                    Object other$supplierName = other.getSupplierName();
                    if (this$supplierName == null) {
                        if (other$supplierName == null) {
                            break label139;
                        }
                    } else if (this$supplierName.equals(other$supplierName)) {
                        break label139;
                    }

                    return false;
                }

                Object this$telephone = this.getTelephone();
                Object other$telephone = other.getTelephone();
                if (this$telephone == null) {
                    if (other$telephone != null) {
                        return false;
                    }
                } else if (!this$telephone.equals(other$telephone)) {
                    return false;
                }

                label125: {
                    Object this$address = this.getAddress();
                    Object other$address = other.getAddress();
                    if (this$address == null) {
                        if (other$address == null) {
                            break label125;
                        }
                    } else if (this$address.equals(other$address)) {
                        break label125;
                    }

                    return false;
                }

                label118: {
                    Object this$contactPerson = this.getContactPerson();
                    Object other$contactPerson = other.getContactPerson();
                    if (this$contactPerson == null) {
                        if (other$contactPerson == null) {
                            break label118;
                        }
                    } else if (this$contactPerson.equals(other$contactPerson)) {
                        break label118;
                    }

                    return false;
                }

                Object this$editUserCode = this.getEditUserCode();
                Object other$editUserCode = other.getEditUserCode();
                if (this$editUserCode == null) {
                    if (other$editUserCode != null) {
                        return false;
                    }
                } else if (!this$editUserCode.equals(other$editUserCode)) {
                    return false;
                }

                label104: {
                    Object this$editUserName = this.getEditUserName();
                    Object other$editUserName = other.getEditUserName();
                    if (this$editUserName == null) {
                        if (other$editUserName == null) {
                            break label104;
                        }
                    } else if (this$editUserName.equals(other$editUserName)) {
                        break label104;
                    }

                    return false;
                }

                label97: {
                    Object this$editTime = this.getEditTime();
                    Object other$editTime = other.getEditTime();
                    if (this$editTime == null) {
                        if (other$editTime == null) {
                            break label97;
                        }
                    } else if (this$editTime.equals(other$editTime)) {
                        break label97;
                    }

                    return false;
                }

                Object this$createUserCode = this.getCreateUserCode();
                Object other$createUserCode = other.getCreateUserCode();
                if (this$createUserCode == null) {
                    if (other$createUserCode != null) {
                        return false;
                    }
                } else if (!this$createUserCode.equals(other$createUserCode)) {
                    return false;
                }

                Object this$createUserName = this.getCreateUserName();
                Object other$createUserName = other.getCreateUserName();
                if (this$createUserName == null) {
                    if (other$createUserName != null) {
                        return false;
                    }
                } else if (!this$createUserName.equals(other$createUserName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof SupplierEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $enterpriseId = this.getEnterpriseId();
        result = result * 59 + ($enterpriseId == null ? 43 : $enterpriseId.hashCode());
        Object $supplierId = this.getSupplierId();
        result = result * 59 + ($supplierId == null ? 43 : $supplierId.hashCode());
        Object $supplierTypeId = this.getSupplierTypeId();
        result = result * 59 + ($supplierTypeId == null ? 43 : $supplierTypeId.hashCode());
        Object $supplierCode = this.getSupplierCode();
        result = result * 59 + ($supplierCode == null ? 43 : $supplierCode.hashCode());
        Object $supplierName = this.getSupplierName();
        result = result * 59 + ($supplierName == null ? 43 : $supplierName.hashCode());
        Object $telephone = this.getTelephone();
        result = result * 59 + ($telephone == null ? 43 : $telephone.hashCode());
        Object $address = this.getAddress();
        result = result * 59 + ($address == null ? 43 : $address.hashCode());
        Object $contactPerson = this.getContactPerson();
        result = result * 59 + ($contactPerson == null ? 43 : $contactPerson.hashCode());
        Object $editUserCode = this.getEditUserCode();
        result = result * 59 + ($editUserCode == null ? 43 : $editUserCode.hashCode());
        Object $editUserName = this.getEditUserName();
        result = result * 59 + ($editUserName == null ? 43 : $editUserName.hashCode());
        Object $editTime = this.getEditTime();
        result = result * 59 + ($editTime == null ? 43 : $editTime.hashCode());
        Object $createUserCode = this.getCreateUserCode();
        result = result * 59 + ($createUserCode == null ? 43 : $createUserCode.hashCode());
        Object $createUserName = this.getCreateUserName();
        result = result * 59 + ($createUserName == null ? 43 : $createUserName.hashCode());
        return result;
    }

    public String toString() {
        return "SupplierEntity(enterpriseId=" + this.getEnterpriseId() + ", supplierId=" + this.getSupplierId() + ", supplierCode=" + this.getSupplierCode() + ", supplierName=" + this.getSupplierName() + ", telephone=" + this.getTelephone() + ", address=" + this.getAddress() + ", contactPerson=" + this.getContactPerson() + ", supplierTypeId=" + this.getSupplierTypeId() + ", editUserCode=" + this.getEditUserCode() + ", editUserName=" + this.getEditUserName() + ", editTime=" + this.getEditTime() + ", createUserCode=" + this.getCreateUserCode() + ", createUserName=" + this.getCreateUserName() + ")";
    }
}
